package com.study.traincard.database;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;


import java.util.Date;


/**
 * Card Table
 */
@Entity(tableName = "form")
public class Form extends OrmObject {
    @PrimaryKey()
    private Long formId;
    private String formName;
    private Boolean isDataEmpty;
    private Integer dimension;
    private Date journeyDate;

    private String str_trainstart;
    private String str_trainstart_time;
    private String str_trainend;
    private String str_trainend_time;
    private String str_trainserial;
    private String str_seatingno;
    private String str_traveller_name;
    private String str_journey_date;
    private String str_checkport;
    private String str_trainclass;

    public Form(Long formId, String formName, Integer dimension, Date journeydate, String str_trainstart, String str_trainstart_time,
                String str_trainend, String str_trainend_time, String str_trainserial, String str_seatingno, String str_traveller_name,
                String str_journey_date,String str_chechport,String str_trainclass,Boolean isDataEmpty) {
        this.formId = formId;
        this.formName = formName;
        this.dimension = dimension;

        this.journeyDate = journeydate;

        this.str_trainstart = str_trainstart;
        this.str_trainstart_time = str_trainstart_time;
        this.str_trainend = str_trainend;
        this.str_trainend_time = str_trainend_time;
        this.str_trainserial = str_trainserial;
        this.str_seatingno = str_seatingno;
        this.str_traveller_name = str_traveller_name;
        this.str_journey_date = str_journey_date;
        this.str_checkport= str_chechport;
        this.str_trainclass=str_trainclass;

        this.isDataEmpty=isDataEmpty;

    }

    public Form(Long formId, String formName, Integer dimension,Boolean isDataEmpty) {
        this.formId = formId;
        this.formName = formName;
        this.dimension = dimension;
        this.isDataEmpty=isDataEmpty;
    }

    public Form() {
    }

    public Integer getDimension() {
        return dimension;
    }

    public void setDimension(Integer dimension) {
        this.dimension = dimension;
    }

    public Long getFormId() {
        return formId;
    }

    public void setFormId(Long formId) {
        this.formId = formId;
    }

    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    public Date getJourneyDate() {
        return journeyDate;
    }

    public void setJourneyDate(Date journeydate) {
        this.journeyDate = journeydate;
    }

    public String getStr_trainstart() {
        return str_trainstart;
    }

    public void setStr_trainstart(String str_trainstart) {
        this.str_trainstart = str_trainstart;
    }

    public String getStr_trainstart_time() {
        return str_trainstart_time;
    }

    public void setStr_trainstart_time(String str_trainstart_time) {
        this.str_trainstart_time = str_trainstart_time;
    }

    public String getStr_trainend() {
        return str_trainend;
    }

    public void setStr_trainend(String str_trainend) {
        this.str_trainend = str_trainend;
    }

    public String getStr_trainend_time() {
        return str_trainend_time;
    }

    public void setStr_trainend_time(String str_trainend_time) {
        this.str_trainend_time = str_trainend_time;
    }

    public String getStr_trainserial() {
        return str_trainserial;
    }

    public void setStr_trainserial(String str_trainserial) {
        this.str_trainserial = str_trainserial;
    }

    public String getStr_seatingno() {
        return str_seatingno;
    }

    public void setStr_seatingno(String str_seatingno) {
        this.str_seatingno = str_seatingno;
    }

    public String getStr_traveller_name() {
        return str_traveller_name;
    }

    public void setStr_traveller_name(String str_traveller_name) {
        this.str_traveller_name = str_traveller_name;
    }

    public String getStr_journey_date() {
        return str_journey_date;
    }

    public void setStr_journey_date(String str_journey_date) {
        this.str_journey_date = str_journey_date;
    }

    public String getStr_checkport(){ return str_checkport; }
    public void setStr_checkport(String str_checkport){this.str_checkport=str_checkport;}

    public String getStr_trainclass(){return  str_trainclass;}
    public void setStr_trainclass(String str_trainclass){this.str_trainclass=str_trainclass;}
    public  Boolean getIsDataEmpty(){return isDataEmpty;}
    public void setIsDataEmpty(Boolean isDataEmpty){this.isDataEmpty=isDataEmpty;}
}

